﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;        //引用SQL命名空间
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PMS
{
    class DBConnection
    {
        public static SqlConnection MyConnection()
        {
            //创建数据库连接对象
            return new SqlConnection(
            //数据库连接字符串
        @"server=PC-202006091644\EXPRESS;database=db_PMS;uid=sa;pwd=123456");
        }
    }
}
